/**
 * 为角色配置菜单权限
 */
var zTree1;
var setting;
setting = {
	isSimpleData: true,
	treeNodeKey: "id",
	treeNodeParentKey: "parent_id",
	nameCol : "name",
	checkable:true,
	fontCss: {color: "blue"}
};

function reloadTree(role_id, system_code) {
	$.ajax({
		url: '../menu/listMenuAsRoleAll.action',   
		type:'POST',
		data:{'role_id':role_id, 'menu.system_code':system_code},
		dataType: 'json',
		beforeSend:function(xmlhttprequest){
		},
		success:function(data){
			zTree1 = $("#dropdownMenu").zTree(setting, clone(data));
		},
		error:function(action, errortype, desc){
			alert("加载菜单信息失败，请检查网络连接或稍后再试！");
		}
	});
}
